import defaultSettings from "@/settings";


const useSystemStore = defineStore('system',{
    state:() => ({
        clientHeight: document.body.clientHeight,   // 客户端高度
        clientWidth: document.body.clientWidth,     // 客户端宽度
        layoutHeaderHeight: 53,                     // 布局头部高度
        layoutFooterHeight: 40,                     // 布局底部高度
        logoHeight: 60,                             // logo高度
        tabsHeight: 40,                             // tab标签栏高度
        sysTitle:defaultSettings.title
    }),
    actions:{
        setClientHeight(height){
            this.clientHeight = height
        },
        setClientWidth(width){
            this.clientWidth = width
        },
    }
})
export default useSystemStore;